﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
namespace Orange.Logistics.Models {
    public class VenueStaff {
        [Key]
        [Column("Id"),DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Required(ErrorMessage = "*")]
        public int Id { get; set; }

        [Column("Contactor"), MaxLength(20, ErrorMessage = "输入过长")]
        public string Contactor { get; set; }

        [Column("Idcard"), MaxLength(20, ErrorMessage = "输入过长")]
        public string Idcard { get; set; }

        [Column("Sexs"), MaxLength(1, ErrorMessage = "输入过长")]
        public string Sexs { get; set; }

        [Column("Phone"), MaxLength(20, ErrorMessage = "输入过长")]
        public string Phone { get; set; }

        [Column("Birthdate")]
        public DateTime? Birthdate { get; set; }

        [Column("Jobsid"), MaxLength(20, ErrorMessage = "输入过长")]
        public string Jobsid { get; set; }

        [Column("Storeid"), MaxLength(20, ErrorMessage = "输入过长")]
        public string Storeid { get; set; }

        [Column("Storein")]
        public decimal? Storein { get; set; }

        [Column("Storeout")]
        public decimal? Storeout { get; set; }

        [Column("Remark"), MaxLength(255, ErrorMessage = "输入过长")]
        [DataType(DataType.MultilineText)]
        public string Remark { get; set; }

        [Column("Status"), MaxLength(20, ErrorMessage = "输入过长")]
        [DefaultValue("A")]
        public string Status { get; set; }

        [Column("Modifyuser"), MaxLength(12, ErrorMessage = "输入过长")]
        public string Modifyuser { get; set; }

        [Column("Modifytime")]
        public DateTime? Modifytime { get; set; }

    }
}
